<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::EncryptedArrayBase Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_encrypted_array_base.html">EncryptedArrayBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_encrypted_array_base-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::EncryptedArrayBase Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>virtual class for data-movement operations on arrays of slots  
 <a href="classhelib_1_1_encrypted_array_base.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for helib::EncryptedArrayBase:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classhelib_1_1_encrypted_array_base.png" usemap="#helib::EncryptedArrayBase_map" alt=""/>
  <map id="helib::EncryptedArrayBase_map" name="helib::EncryptedArrayBase_map">
<area href="classhelib_1_1_encrypted_array_cx.html" title="A different derived class to be used for the approximate-numbers scheme." alt="helib::EncryptedArrayCx" shape="rect" coords="0,56,229,80"/>
<area href="classhelib_1_1_encrypted_array_derived.html" title="Derived concrete implementation of EncryptedArrayBase." alt="helib::EncryptedArrayDerived&lt; type &gt;" shape="rect" coords="239,56,468,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3fcb15513e4d89d0c0ed4bda3fca2190"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a3fcb15513e4d89d0c0ed4bda3fca2190">~EncryptedArrayBase</a> ()</td></tr>
<tr class="separator:a3fcb15513e4d89d0c0ed4bda3fca2190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff3d839e2e2976ef8c87853cf5a9cbb7"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classhelib_1_1_encrypted_array_base.html">EncryptedArrayBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aff3d839e2e2976ef8c87853cf5a9cbb7">clone</a> () const =0</td></tr>
<tr class="separator:aff3d839e2e2976ef8c87853cf5a9cbb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fe975d2c45ef2f25aaf5920c91627fe"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a5fe975d2c45ef2f25aaf5920c91627fe">getTag</a> () const =0</td></tr>
<tr class="separator:a5fe975d2c45ef2f25aaf5920c91627fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a953777c1f618b3f77cb06981f39dce99"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a953777c1f618b3f77cb06981f39dce99">getContext</a> () const =0</td></tr>
<tr class="separator:a953777c1f618b3f77cb06981f39dce99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebe917f60f1fa14b3f43d283e39c05f0"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aebe917f60f1fa14b3f43d283e39c05f0">getPAlgebra</a> () const =0</td></tr>
<tr class="separator:aebe917f60f1fa14b3f43d283e39c05f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a385a1b684e2ff6346f7b8e7425a6aacb"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a385a1b684e2ff6346f7b8e7425a6aacb">getDegree</a> () const =0</td></tr>
<tr class="separator:a385a1b684e2ff6346f7b8e7425a6aacb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b575e110984970e2f56f6b04731f55a"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a4b575e110984970e2f56f6b04731f55a">getP2R</a> () const =0</td></tr>
<tr class="separator:a4b575e110984970e2f56f6b04731f55a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab02ad165d8df163bc6d8c544f8f81bbd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ab02ad165d8df163bc6d8c544f8f81bbd">rotate</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const =0</td></tr>
<tr class="memdesc:ab02ad165d8df163bc6d8c544f8f81bbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Right rotation as a linear array. E.g., rotating ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(n 1 2 ... n-1)  <a href="classhelib_1_1_encrypted_array_base.html#ab02ad165d8df163bc6d8c544f8f81bbd">More...</a><br /></td></tr>
<tr class="separator:ab02ad165d8df163bc6d8c544f8f81bbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72245213a18b9bafdd8ebc2396972c14"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a72245213a18b9bafdd8ebc2396972c14">shift</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const =0</td></tr>
<tr class="memdesc:a72245213a18b9bafdd8ebc2396972c14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-cyclic right shift with zero fill E.g., shifting ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(0 1 2... n-1)  <a href="classhelib_1_1_encrypted_array_base.html#a72245213a18b9bafdd8ebc2396972c14">More...</a><br /></td></tr>
<tr class="separator:a72245213a18b9bafdd8ebc2396972c14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3beed1bc134ad9a4dbe6f6c4f456fee7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a3beed1bc134ad9a4dbe6f6c4f456fee7">rotate1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k, bool dc=false) const =0</td></tr>
<tr class="memdesc:a3beed1bc134ad9a4dbe6f6c4f456fee7"><td class="mdescLeft">&#160;</td><td class="mdescRight">right-rotate k positions along the i'th dimension  <a href="classhelib_1_1_encrypted_array_base.html#a3beed1bc134ad9a4dbe6f6c4f456fee7">More...</a><br /></td></tr>
<tr class="separator:a3beed1bc134ad9a4dbe6f6c4f456fee7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2461039fb77ebf3fea8482adff2b40c0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a2461039fb77ebf3fea8482adff2b40c0">shift1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k) const =0</td></tr>
<tr class="memdesc:a2461039fb77ebf3fea8482adff2b40c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Right shift k positions along the i'th dimension with zero fill.  <a href="classhelib_1_1_encrypted_array_base.html#a2461039fb77ebf3fea8482adff2b40c0">More...</a><br /></td></tr>
<tr class="separator:a2461039fb77ebf3fea8482adff2b40c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05e74964d2a8246b2c197251d6426faa"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a05e74964d2a8246b2c197251d6426faa">badDimensionAutomorphCorrection</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long amt) const =0</td></tr>
<tr class="memdesc:a05e74964d2a8246b2c197251d6426faa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Correct an automorphism in a bad dimension.  <a href="classhelib_1_1_encrypted_array_base.html#a05e74964d2a8246b2c197251d6426faa">More...</a><br /></td></tr>
<tr class="separator:a05e74964d2a8246b2c197251d6426faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20cdc66014104dd640f37c1c92e1fa05"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a20cdc66014104dd640f37c1c92e1fa05">buildLinPolyCoeffs</a> (std::vector&lt; NTL::ZZX &gt; &amp;C, const std::vector&lt; NTL::ZZX &gt; &amp;L) const =0</td></tr>
<tr class="memdesc:a20cdc66014104dd640f37c1c92e1fa05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linearized polynomials. L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. The result is a coefficient std::vector C for the linearized polynomial representing M: a polynomial h in Z/(p^r)[X] of degree &lt; d is sent to.  <a href="classhelib_1_1_encrypted_array_base.html#a20cdc66014104dd640f37c1c92e1fa05">More...</a><br /></td></tr>
<tr class="separator:a20cdc66014104dd640f37c1c92e1fa05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3829a9890ce25a65bdb5111bf2bdd687"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a3829a9890ce25a65bdb5111bf2bdd687">restoreContext</a> () const</td></tr>
<tr class="separator:a3829a9890ce25a65bdb5111bf2bdd687"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5927ca8c689a115ee2c12522289255f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ae5927ca8c689a115ee2c12522289255f">restoreContextForG</a> () const</td></tr>
<tr class="separator:ae5927ca8c689a115ee2c12522289255f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a16e9c45db9d6b963cfeaf0c0afaca2"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a6a16e9c45db9d6b963cfeaf0c0afaca2">size</a> () const</td></tr>
<tr class="memdesc:a6a16e9c45db9d6b963cfeaf0c0afaca2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total size (# of slots) of hypercube.  <a href="classhelib_1_1_encrypted_array_base.html#a6a16e9c45db9d6b963cfeaf0c0afaca2">More...</a><br /></td></tr>
<tr class="separator:a6a16e9c45db9d6b963cfeaf0c0afaca2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5741ce03114f74e26d3d842e3539806a"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a5741ce03114f74e26d3d842e3539806a">dimension</a> () const</td></tr>
<tr class="memdesc:a5741ce03114f74e26d3d842e3539806a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of dimensions of hypercube.  <a href="classhelib_1_1_encrypted_array_base.html#a5741ce03114f74e26d3d842e3539806a">More...</a><br /></td></tr>
<tr class="separator:a5741ce03114f74e26d3d842e3539806a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b4ebc9251cd7e1966c5da70f51fb369"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a7b4ebc9251cd7e1966c5da70f51fb369">sizeOfDimension</a> (long i) const</td></tr>
<tr class="memdesc:a7b4ebc9251cd7e1966c5da70f51fb369"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of given dimension.  <a href="classhelib_1_1_encrypted_array_base.html#a7b4ebc9251cd7e1966c5da70f51fb369">More...</a><br /></td></tr>
<tr class="separator:a7b4ebc9251cd7e1966c5da70f51fb369"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a368c21a272921966da3a7793145bf5d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a368c21a272921966da3a7793145bf5d2">nativeDimension</a> (long i) const</td></tr>
<tr class="memdesc:a368c21a272921966da3a7793145bf5d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is rotations in given dimension a "native" operation?  <a href="classhelib_1_1_encrypted_array_base.html#a368c21a272921966da3a7793145bf5d2">More...</a><br /></td></tr>
<tr class="separator:a368c21a272921966da3a7793145bf5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f4d4caa1e488648194495688a06a6a3"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a1f4d4caa1e488648194495688a06a6a3">coordinate</a> (long i, long k) const</td></tr>
<tr class="memdesc:a1f4d4caa1e488648194495688a06a6a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns coordinate of index k along the i'th dimension  <a href="classhelib_1_1_encrypted_array_base.html#a1f4d4caa1e488648194495688a06a6a3">More...</a><br /></td></tr>
<tr class="separator:a1f4d4caa1e488648194495688a06a6a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af55d2066263a1a0f6abd9ab221a61f0c"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#af55d2066263a1a0f6abd9ab221a61f0c">addCoord</a> (long i, long k, long offset) const</td></tr>
<tr class="memdesc:af55d2066263a1a0f6abd9ab221a61f0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">adds offset to index k in the i'th dimension  <a href="classhelib_1_1_encrypted_array_base.html#af55d2066263a1a0f6abd9ab221a61f0c">More...</a><br /></td></tr>
<tr class="separator:af55d2066263a1a0f6abd9ab221a61f0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefb676e30745c2ce81df0384cf949df7"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
<tr class="memitem:aefb676e30745c2ce81df0384cf949df7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aefb676e30745c2ce81df0384cf949df7">rotate1D</a> (std::vector&lt; U &gt; &amp;out, const std::vector&lt; U &gt; &amp;in, long i, long offset) const</td></tr>
<tr class="memdesc:aefb676e30745c2ce81df0384cf949df7"><td class="mdescLeft">&#160;</td><td class="mdescRight">rotate an array by offset in the i'th dimension (output should not alias input)  <a href="classhelib_1_1_encrypted_array_base.html#aefb676e30745c2ce81df0384cf949df7">More...</a><br /></td></tr>
<tr class="separator:aefb676e30745c2ce81df0384cf949df7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Encoding/decoding methods</div></td></tr>
<tr class="memitem:a93bf7ceecb7cef0259b5eddeb25a3c28"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a93bf7ceecb7cef0259b5eddeb25a3c28">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; long &gt; &amp;array) const =0</td></tr>
<tr class="separator:a93bf7ceecb7cef0259b5eddeb25a3c28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c08875c23130ae7eeea11189b5c50cf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a6c08875c23130ae7eeea11189b5c50cf">encode</a> (NTL::ZZX &amp;ptxt, const std::vector&lt; long &gt; &amp;array) const =0</td></tr>
<tr class="separator:a6c08875c23130ae7eeea11189b5c50cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64f75f243718856305758a8a39834a00"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a64f75f243718856305758a8a39834a00">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &gt; &amp;array) const =0</td></tr>
<tr class="separator:a64f75f243718856305758a8a39834a00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b461cfa84f1751ad0db61a80ff5c7e8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a8b461cfa84f1751ad0db61a80ff5c7e8">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array) const =0</td></tr>
<tr class="separator:a8b461cfa84f1751ad0db61a80ff5c7e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c1ee4078df5f248d96b30dd5676783e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a4c1ee4078df5f248d96b30dd5676783e">encode</a> (NTL::ZZX &amp;ptxt, const std::vector&lt; NTL::ZZX &gt; &amp;array) const =0</td></tr>
<tr class="separator:a4c1ee4078df5f248d96b30dd5676783e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af769f314f80561d0aad9420aabc98a86"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#af769f314f80561d0aad9420aabc98a86">encode</a> (NTL::ZZX &amp;ptxt, const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array) const =0</td></tr>
<tr class="separator:af769f314f80561d0aad9420aabc98a86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f11ae63a7511a016c1ba28f293930a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a8f11ae63a7511a016c1ba28f293930a0">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; NTL::ZZX &gt; &amp;array) const</td></tr>
<tr class="separator:a8f11ae63a7511a016c1ba28f293930a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacbeee1b5623eeec1d2c8ca311654cc7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aacbeee1b5623eeec1d2c8ca311654cc7">decode</a> (std::vector&lt; long &gt; &amp;array, const NTL::ZZX &amp;ptxt) const =0</td></tr>
<tr class="separator:aacbeee1b5623eeec1d2c8ca311654cc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a034157a2fb376284fa951f20570e02d0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a034157a2fb376284fa951f20570e02d0">decode</a> (std::vector&lt; NTL::ZZX &gt; &amp;array, const NTL::ZZX &amp;ptxt) const =0</td></tr>
<tr class="separator:a034157a2fb376284fa951f20570e02d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a789cc5597002e684315cabbef6c42de8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a789cc5597002e684315cabbef6c42de8">decode</a> (<a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array, const NTL::ZZX &amp;ptxt) const =0</td></tr>
<tr class="separator:a789cc5597002e684315cabbef6c42de8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee2981f3b0804e96f83106307d9c5be9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aee2981f3b0804e96f83106307d9c5be9">random</a> (std::vector&lt; long &gt; &amp;array) const =0</td></tr>
<tr class="separator:aee2981f3b0804e96f83106307d9c5be9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e197fb8f924535b79bf1cb0fd62ce3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a54e197fb8f924535b79bf1cb0fd62ce3">random</a> (std::vector&lt; NTL::ZZX &gt; &amp;array) const =0</td></tr>
<tr class="separator:a54e197fb8f924535b79bf1cb0fd62ce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9b7baf29ff926acd6cfa8b8d00bf800"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ab9b7baf29ff926acd6cfa8b8d00bf800">decode1Slot</a> (const NTL::ZZX &amp;ptxt, long i) const</td></tr>
<tr class="separator:ab9b7baf29ff926acd6cfa8b8d00bf800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfdec26873763a9b20daf3206a273146"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#acfdec26873763a9b20daf3206a273146">decode1Slot</a> (NTL::ZZX &amp;slot, const NTL::ZZX &amp;ptxt, long i) const</td></tr>
<tr class="separator:acfdec26873763a9b20daf3206a273146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae87dba346c9f27331e552edd1511552f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ae87dba346c9f27331e552edd1511552f">encodeUnitSelector</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, long i) const =0</td></tr>
<tr class="memdesc:ae87dba346c9f27331e552edd1511552f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encodes a std::vector with 1 at position i and 0 everywhere else.  <a href="classhelib_1_1_encrypted_array_base.html#ae87dba346c9f27331e552edd1511552f">More...</a><br /></td></tr>
<tr class="separator:ae87dba346c9f27331e552edd1511552f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Encoding+encryption/decryption+decoding</div></td></tr>
<tr class="memitem:ade59fa0a4bceb030a895d725ee1f7d88"><td class="memTemplParams" colspan="2">template&lt;typename PTXT &gt; </td></tr>
<tr class="memitem:ade59fa0a4bceb030a895d725ee1f7d88"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ade59fa0a4bceb030a895d725ee1f7d88">encrypt</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;key, const PTXT &amp;ptxt) const</td></tr>
<tr class="separator:ade59fa0a4bceb030a895d725ee1f7d88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e8c39c8730c5072e36f37aaa28eccbb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a4e8c39c8730c5072e36f37aaa28eccbb">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; long &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:a4e8c39c8730c5072e36f37aaa28eccbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae31ef3579ef0b0d6cba0f805a9c80f50"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ae31ef3579ef0b0d6cba0f805a9c80f50">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; NTL::ZZX &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:ae31ef3579ef0b0d6cba0f805a9c80f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96caa13ce77bdabc4b7d679c28213c73"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a96caa13ce77bdabc4b7d679c28213c73">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;ptxt) const =0</td></tr>
<tr class="separator:a96caa13ce77bdabc4b7d679c28213c73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4883d910df8cf214986647f84eb7531c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a4883d910df8cf214986647f84eb7531c">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; double &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:a4883d910df8cf214986647f84eb7531c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a000a070007229db34150a3dcbb45f886"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a000a070007229db34150a3dcbb45f886">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:a000a070007229db34150a3dcbb45f886"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb343e9ad9fe202a7386fc8359346a02"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#acb343e9ad9fe202a7386fc8359346a02">decrypt1Slot</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, long i) const</td></tr>
<tr class="separator:acb343e9ad9fe202a7386fc8359346a02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a454ee083696fe4e2b56ed18dae023722"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a454ee083696fe4e2b56ed18dae023722">decrypt1Slot</a> (NTL::ZZX &amp;slot, const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, long i) const</td></tr>
<tr class="separator:a454ee083696fe4e2b56ed18dae023722"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>virtual class for data-movement operations on arrays of slots </p>
<p>An object ea of type <a class="el" href="classhelib_1_1_encrypted_array.html" title="A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...">EncryptedArray</a> stores information about an <a class="el" href="classhelib_1_1_context.html" title="Maintaining the parameters.">Context</a> context, and a monic polynomial G. If context defines parameters m, p, and r, then ea is a helper abject that supports encoding/decoding and encryption/decryption of std::vectors of plaintext slots over the ring (Z/(p^r)[X])/(G).</p>
<p>The polynomial G should be irreducible over Z/(p^r) (this is not checked). The degree of G should divide the multiplicative order of p modulo m (this is checked). Currently, the following restriction is imposed:</p>
<p>either r == 1 or deg(G) == 1 or G == factors[0].</p>
<p>ea stores objects in the polynomial ring Z/(p^r)[X].</p>
<p>Just as for the class <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a>, if p == 2 and r == 1, then these polynomials are represented as GF2X's, and otherwise as zz_pX's. Thus, the types of these objects are not determined until run time. As such, we need to use a class hierarchy, which mirrors that of <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a>, as follows.</p>
<p><a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a> is a virtual class</p>
<p>EncryptedArrayDerived&lt;type&gt; is a derived template class, where type is either PA_GF2 or PA_zz_p.</p>
<p>The class <a class="el" href="classhelib_1_1_encrypted_array.html" title="A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...">EncryptedArray</a> is a simple wrapper around a smart pointer to an <a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a> object: copying an <a class="el" href="classhelib_1_1_encrypted_array.html" title="A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...">EncryptedArray</a> object results is a "deep copy" of the underlying object of the derived class. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3fcb15513e4d89d0c0ed4bda3fca2190"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fcb15513e4d89d0c0ed4bda3fca2190">&#9670;&nbsp;</a></span>~EncryptedArrayBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual helib::EncryptedArrayBase::~EncryptedArrayBase </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af55d2066263a1a0f6abd9ab221a61f0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af55d2066263a1a0f6abd9ab221a61f0c">&#9670;&nbsp;</a></span>addCoord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::addCoord </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>adds offset to index k in the i'th dimension </p>

</div>
</div>
<a id="a05e74964d2a8246b2c197251d6426faa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05e74964d2a8246b2c197251d6426faa">&#9670;&nbsp;</a></span>badDimensionAutomorphCorrection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::badDimensionAutomorphCorrection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>amt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Correct an automorphism in a bad dimension. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctxt</td><td><code><a class="el" href="classhelib_1_1_ctxt.html" title="A Ctxt object holds a single ciphertext.">Ctxt</a></code> to perform the correction on. </td></tr>
    <tr><td class="paramname">i</td><td>Dimension of which to correct. </td></tr>
    <tr><td class="paramname">amt</td><td>Exponent of the automorphism. </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#aee83a1b81625a43d1d819e3740b2a3b4">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a578731eb6f1c9ee5c992e8cb8108a7bf">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a20cdc66014104dd640f37c1c92e1fa05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20cdc66014104dd640f37c1c92e1fa05">&#9670;&nbsp;</a></span>buildLinPolyCoeffs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::buildLinPolyCoeffs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>L</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Linearized polynomials. L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. The result is a coefficient std::vector C for the linearized polynomial representing M: a polynomial h in Z/(p^r)[X] of degree &lt; d is sent to. </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ //! M(h(X) \bmod G)= \sum_{i=0}^{d-1}(C[j] \cdot h(X^{p^j}))\bmod G). //! \]" src="form_3.png" width="286" height="38"/>
</p>
 
<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac12a59e0c752ad844b5442f8df150449">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="aff3d839e2e2976ef8c87853cf5a9cbb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff3d839e2e2976ef8c87853cf5a9cbb7">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classhelib_1_1_encrypted_array_base.html">EncryptedArrayBase</a>* helib::EncryptedArrayBase::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a407bacde3fcafde4071f6e6e37bc2771">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae80adc5a72904c36d8c174ee032b7208">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a1f4d4caa1e488648194495688a06a6a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f4d4caa1e488648194495688a06a6a3">&#9670;&nbsp;</a></span>coordinate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::coordinate </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>returns coordinate of index k along the i'th dimension </p>

</div>
</div>
<a id="a789cc5597002e684315cabbef6c42de8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a789cc5597002e684315cabbef6c42de8">&#9670;&nbsp;</a></span>decode() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a08da5d736925eaa31364d11607065621">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="aacbeee1b5623eeec1d2c8ca311654cc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacbeee1b5623eeec1d2c8ca311654cc7">&#9670;&nbsp;</a></span>decode() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#af8ff3f420efdf1d978e7647daf851b38">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a034157a2fb376284fa951f20570e02d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a034157a2fb376284fa951f20570e02d0">&#9670;&nbsp;</a></span>decode() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ab46f85fab47332239f119caee09ececf">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ab9b7baf29ff926acd6cfa8b8d00bf800"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9b7baf29ff926acd6cfa8b8d00bf800">&#9670;&nbsp;</a></span>decode1Slot() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::decode1Slot </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acfdec26873763a9b20daf3206a273146"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfdec26873763a9b20daf3206a273146">&#9670;&nbsp;</a></span>decode1Slot() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArrayBase::decode1Slot </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>slot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a96caa13ce77bdabc4b7d679c28213c73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96caa13ce77bdabc4b7d679c28213c73">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae4f2249cd0f9cebc2539ba2609780ae1">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a000a070007229db34150a3dcbb45f886"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a000a070007229db34150a3dcbb45f886">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#aa502f697863f7b9354a25997043507bf">helib::EncryptedArrayCx</a>.</p>

</div>
</div>
<a id="a4883d910df8cf214986647f84eb7531c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4883d910df8cf214986647f84eb7531c">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a5bea11d6a177b18c3085e37fa5af5c20">helib::EncryptedArrayCx</a>.</p>

</div>
</div>
<a id="a4e8c39c8730c5072e36f37aaa28eccbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e8c39c8730c5072e36f37aaa28eccbb">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a579c0568094fd700b471567ee82f731c">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ae31ef3579ef0b0d6cba0f805a9c80f50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae31ef3579ef0b0d6cba0f805a9c80f50">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a67585c6eeb53cb6bcd1f48f41f9e05a9">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="acb343e9ad9fe202a7386fc8359346a02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb343e9ad9fe202a7386fc8359346a02">&#9670;&nbsp;</a></span>decrypt1Slot() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::decrypt1Slot </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a454ee083696fe4e2b56ed18dae023722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a454ee083696fe4e2b56ed18dae023722">&#9670;&nbsp;</a></span>decrypt1Slot() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArrayBase::decrypt1Slot </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>slot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5741ce03114f74e26d3d842e3539806a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5741ce03114f74e26d3d842e3539806a">&#9670;&nbsp;</a></span>dimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::dimension </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Number of dimensions of hypercube. </p>

</div>
</div>
<a id="af769f314f80561d0aad9420aabc98a86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af769f314f80561d0aad9420aabc98a86">&#9670;&nbsp;</a></span>encode() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae9d558e1bc5bcc2d7bab85621d7aeb58">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a6c08875c23130ae7eeea11189b5c50cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c08875c23130ae7eeea11189b5c50cf">&#9670;&nbsp;</a></span>encode() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#afee5218d346a7d0c27fcf4f72bd1fe8c">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a4c1ee4078df5f248d96b30dd5676783e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c1ee4078df5f248d96b30dd5676783e">&#9670;&nbsp;</a></span>encode() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a80cc816a32404a8dc6e9a7ad28a2b810">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a8b461cfa84f1751ad0db61a80ff5c7e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b461cfa84f1751ad0db61a80ff5c7e8">&#9670;&nbsp;</a></span>encode() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1ee43b5496add8a1836259063975e1ee">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a93bf7ceecb7cef0259b5eddeb25a3c28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93bf7ceecb7cef0259b5eddeb25a3c28">&#9670;&nbsp;</a></span>encode() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a7c69526bbb217d9731e628af68585b26">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a8f11ae63a7511a016c1ba28f293930a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f11ae63a7511a016c1ba28f293930a0">&#9670;&nbsp;</a></span>encode() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a64f75f243718856305758a8a39834a00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64f75f243718856305758a8a39834a00">&#9670;&nbsp;</a></span>encode() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a377168a9d05375ab76ce34d8f6631582">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ae87dba346c9f27331e552edd1511552f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae87dba346c9f27331e552edd1511552f">&#9670;&nbsp;</a></span>encodeUnitSelector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::encodeUnitSelector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Encodes a std::vector with 1 at position i and 0 everywhere else. </p>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a0fee8bb20e092b4728f2ed11c78bacc8">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a77cc1a6041c4d442bb3a3858afc5f12c">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ade59fa0a4bceb030a895d725ee1f7d88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade59fa0a4bceb030a895d725ee1f7d88">&#9670;&nbsp;</a></span>encrypt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PTXT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArrayBase::encrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PTXT &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a953777c1f618b3f77cb06981f39dce99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a953777c1f618b3f77cb06981f39dce99">&#9670;&nbsp;</a></span>getContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classhelib_1_1_context.html">Context</a>&amp; helib::EncryptedArrayBase::getContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#aa31b4620c1888b0daf353c4947203b2c">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#aedb467d9a37f866be26575bcdebe4401">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a385a1b684e2ff6346f7b8e7425a6aacb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a385a1b684e2ff6346f7b8e7425a6aacb">&#9670;&nbsp;</a></span>getDegree()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long helib::EncryptedArrayBase::getDegree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#adb3be49bb5b91e3f7cca75c89877687f">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1aa2691c70360cbb4836ab9d220ce245">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a4b575e110984970e2f56f6b04731f55a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b575e110984970e2f56f6b04731f55a">&#9670;&nbsp;</a></span>getP2R()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long helib::EncryptedArrayBase::getP2R </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a3df75f4c6f7d6962041e01f608fd168d">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a7b245c39644ac52a7040ba18f57ad704">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="aebe917f60f1fa14b3f43d283e39c05f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebe917f60f1fa14b3f43d283e39c05f0">&#9670;&nbsp;</a></span>getPAlgebra()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; helib::EncryptedArrayBase::getPAlgebra </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a9e77914e54d3c5cf96370fafd1792d51">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#aee12c18cec9f25f2e8b4208c7d32d1f7">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a5fe975d2c45ef2f25aaf5920c91627fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fe975d2c45ef2f25aaf5920c91627fe">&#9670;&nbsp;</a></span>getTag()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> helib::EncryptedArrayBase::getTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a42dae93ce85090806f840ad3bc5ef069">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1f1568cce42e1f8b91d9edceb5b8329a">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a368c21a272921966da3a7793145bf5d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a368c21a272921966da3a7793145bf5d2">&#9670;&nbsp;</a></span>nativeDimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::EncryptedArrayBase::nativeDimension </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Is rotations in given dimension a "native" operation? </p>

</div>
</div>
<a id="aee2981f3b0804e96f83106307d9c5be9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee2981f3b0804e96f83106307d9c5be9">&#9670;&nbsp;</a></span>random() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a852eac6fa3232bbc05e850759334580a">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a14f8a3b077bab6c697efc921fe358178">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a54e197fb8f924535b79bf1cb0fd62ce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54e197fb8f924535b79bf1cb0fd62ce3">&#9670;&nbsp;</a></span>random() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a9b0e39d0510ca716372034ee14786c56">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a3829a9890ce25a65bdb5111bf2bdd687"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3829a9890ce25a65bdb5111bf2bdd687">&#9670;&nbsp;</a></span>restoreContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::restoreContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a95c835acdb8766ca3a9e733195dedba7">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ae5927ca8c689a115ee2c12522289255f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5927ca8c689a115ee2c12522289255f">&#9670;&nbsp;</a></span>restoreContextForG()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::restoreContextForG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a334aac82a4217163cd7f3e0a8da7eb9b">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="ab02ad165d8df163bc6d8c544f8f81bbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab02ad165d8df163bc6d8c544f8f81bbd">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::rotate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Right rotation as a linear array. E.g., rotating ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(n 1 2 ... n-1) </p>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a7d8d25cd71e1ca0bd7a287b18965d7c4">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1c0a250013b889509a852aa74e3c29f0">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a3beed1bc134ad9a4dbe6f6c4f456fee7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3beed1bc134ad9a4dbe6f6c4f456fee7">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::rotate1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>dc</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>right-rotate k positions along the i'th dimension </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dc</td><td>means "don't care", which means that the caller guarantees that only zero elements rotate off the end &ndash; this allows for some optimizations that would not otherwise be possible </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a6f262de0581bb42862bfd5edbdc1b79d">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac09d307b1cceced22a6c5717c467b3e7">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="aefb676e30745c2ce81df0384cf949df7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefb676e30745c2ce81df0384cf949df7">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename U &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArrayBase::rotate1D </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>rotate an array by offset in the i'th dimension (output should not alias input) </p>

</div>
</div>
<a id="a72245213a18b9bafdd8ebc2396972c14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72245213a18b9bafdd8ebc2396972c14">&#9670;&nbsp;</a></span>shift()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::shift </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Non-cyclic right shift with zero fill E.g., shifting ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(0 1 2... n-1) </p>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a5e06f07495e1753090a36084f0567c24">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#a47944c462c09ff14b3d8dda332e66325">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a2461039fb77ebf3fea8482adff2b40c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2461039fb77ebf3fea8482adff2b40c0">&#9670;&nbsp;</a></span>shift1D()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void helib::EncryptedArrayBase::shift1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Right shift k positions along the i'th dimension with zero fill. </p>

<p>Implemented in <a class="el" href="classhelib_1_1_encrypted_array_cx.html#a8c9c54b75a6f13a32c5c71157477d6a4">helib::EncryptedArrayCx</a>, and <a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac07a62371be0a1c0ad617a04e147e000">helib::EncryptedArrayDerived&lt; type &gt;</a>.</p>

</div>
</div>
<a id="a6a16e9c45db9d6b963cfeaf0c0afaca2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a16e9c45db9d6b963cfeaf0c0afaca2">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Total size (# of slots) of hypercube. </p>

</div>
</div>
<a id="a7b4ebc9251cd7e1966c5da70f51fb369"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b4ebc9251cd7e1966c5da70f51fb369">&#9670;&nbsp;</a></span>sizeOfDimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArrayBase::sizeOfDimension </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Size of given dimension. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/HElib/include/helib/<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
